package com.apache.flow.core.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "FLOW_TASK_URL")
public class FlowTaskUrl implements java.io.Serializable {
	public FlowTaskUrl() {
	}

	public FlowTaskUrl(String id, String sysId, String taskUrl, String taskType, String sysEname, String createTime) {
		this.id = id;
		this.taskName = taskName;
		this.taskUrl = taskUrl;
		this.taskType = taskType;
		this.sysId = sysId;
		this.createTime = createTime;
	}

	private String id;
	private String taskName;
	private String taskUrl;
	private String taskType; //1 是待处理   0是自处理
	private String sysId;
	private String createTime;//

	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 100)
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid.hex")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "task_name", length = 50)
	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	@Column(name = "task_url", length = 100)
	public String getTaskUrl() {
		return taskUrl;
	}

	public void setTaskUrl(String taskUrl) {
		this.taskUrl = taskUrl;
	}

	@Column(name = "task_type", length = 1)
	public String getTaskType() {
		return taskType;
	}

	public void setTaskType(String taskType) {
		this.taskType = taskType;
	}

	@Column(name = "SYS_ID", length = 50)
	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	@Column(name = "create_time", length = 30)
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

}
